package kr.hkit.powerjava.chapter15;

import java.awt.EventQueue;
import java.awt.image.BufferedImage;
import java.io.File;

import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class MyImageFrame extends JFrame {
	BufferedImage img = null;
	private JPanel contentPane;

	public MyImageFrame() {
		initialize();
	}
	private void initialize() {
		setTitle("Image Load Test");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
/*		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));*/
		setContentPane(contentPane);
		
//		img = ImageIO.read(new File("C:\Users\M201_08\Desktop\IMG_0493.jpeg"));
	}
	
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MyImageFrame frame = new MyImageFrame();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	

}
